package com.smartens.boit.fragment.viewmode;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.MutableLiveData;

import com.smartens.boit.MyApplication2;
import com.smartens.boit.bean.ControlBean;

import java.util.List;

public class ManualControlViewmode  extends AndroidViewModel {
    MyApplication2 myApplication2;
    MutableLiveData<Boolean> isshoudong;

    public MutableLiveData<Boolean> getIsshoudong() {
        return isshoudong;
    }

    public void setIsshoudong(Boolean b) {
        this.isshoudong.setValue(b);
    }

public  MutableLiveData<List<ControlBean>> getList()
{
    return myApplication2.getListMutable();
}
    public ManualControlViewmode(@NonNull Application application) {
        super(application);
        myApplication2=getApplication();
        isshoudong=myApplication2.getIsShoudong();

    }

}
